﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Home/Home.master" %>
<%@ Register src="../module/Videos-List.ascx" tagname="VideosList" tagprefix="inal" %>
<script runat="server">
    private int Item_Id = 0;
    private Videos video;
    private int Item_Lang = 1;
    private string File_Path = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Item_Lang = Utils.GetQueryString("lang", 1);
            Item_Id = Convert.ToInt32(Utils.GetQueryString("Id",1));
            video = new Videos(Item_Id);
            File_Path = video.Create_Time.ToString("yyyyMM/ddHHmmss");
        }
    }
</script>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title><%=video.Item_Title %> - <%=Lang.Show("WenSizeName")%></title>
    <script type="text/javascript" charset="utf-8" src="/Pulgin/ckplayer/ckplayer.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    
    <div id="Play">
        <img alt="<%=video.Item_Title %>" src="http://s.jiathis.com/qrcode.php?url=<%=Utils.UrlEncode(Request.Url.ToString()).Replace("home","m").Replace("Home","m") %>" class="tocode" />
        <div id="Map"><a href="../home/?lang=<%=Item_Lang %>"><%=Lang.Show("Home")%> </a>- <a href="Video-List.aspx?cid=<%=video.Item_Column %>&lang=<%=Item_Lang %>"><%=video.Item_Column_Name %></a> </div>
        <h2><%=video.Item_Title %></h2>
        <!--视频播放器--><div id="a1"></div>
        <div id="Summary"><%=Lang.Show("Summary")%> : <%=video.Item_Summary %></div>
        <div id="Content"><%=video.Item_Story %> <br /> <%=Lang.Show("Published")%> : <%=video.Item_Time.ToString("yyyy/MM/dd") %>  </div>
    </div>

    <div class="layout"><div id="Videos"><div class="list"><inal:VideosList runat="server" Top_Size="3"  /></div></div></div>


<script type="text/javascript">
    var flashvars = {
        f: '/DataFile/mp4/<%=File_Path %>.mp4',
        c: 0,
        wh: 980,
        p: 1
    };
    var params = { bgcolor: '#FFF', allowFullScreen: true, allowScriptAccess: 'always', wmode: 'transparent' };
    var video = ['/DataFile/mp4/<%=File_Path %>.mp4->video/mp4'];
    CKobject.embed('/Pulgin//ckplayer/ckplayer.swf', 'a1', 'ckplayer_a1', '980', '480', true, flashvars, video, params);
</script>
</asp:Content>

